import numpy as np
a = np.array([1, 2, 3, 4])
print(a > 2) # 输出: [False False  True  True] (布尔数组)